#!/bin/bash

echo "hello1"

echo "hello2"
echo "hello3"
echo "hello4"
echo "hello5"
echo "hello6"
echo "hello7"

read -p "di 1 ge shu zi" num1
read -p "di 2 ge shu zi" num2
read -p "di 3 ge shu zi" num3
result=$(($num1+$num2+$num3))
echo "和是$result"


#-lt less than
#-gt greater than
#-eq
#-ne not equals
#-le
#-ge
if [ $num1 -gt $num2 ];then
	echo "shu zi 1 da"
else
	echo "shu zi 2 da"

fi

echo "-------------------"


read -p "输入的字符串是：" str
case $str in
	"hello")
		echo "输入的是hello"
		;;
	"h")
		echo "输入的都是h"
		;;
	"a")
		echo "输入的都是a"
		;;
	"bb")
		echo "输入的都是bb"
		;;
	*)
		echo "上面都没匹配到"
		;;
esac
echo "-----------------"



exit 0
